package com.wit.witmg.api;


import com.wit.witmg.service.ITefdataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author bob
 * @since 2025-07-10
 */
@RestController
@RequestMapping("tefdata")
@Api(tags = "方波数据API")
public class TefdataController {
    @Resource
    private ITefdataService service;
    @ApiOperation("获取")
    @PostMapping("get")
    public Object get(HttpServletRequest request,
                      @RequestParam(value = "dt0",required = false) Long dt0,
                      @RequestParam(value = "dt1",required = false) Long dt1) {
        return service.get(request,dt0,dt1);
    }
}
